package com.example.demo;

import com.clearofchina.core.util.AESUtil;
import org.apache.commons.codec.Charsets;

/**
 * @author gxing
 * @desc TODO
 * @date 2023/9/6
 */
public class MainTest6 {

    private static final byte[] DEFAULT_SECURET1 = new byte[]{53, 65, 54, 56, 54, 54, 55, 55, 55, 48, 55, 52, 52, 48, 52, 51, 54, 67, 54, 53, 54, 49, 55, 50, 52, 70, 54, 54, 52, 51, 54, 56, 54, 57, 54, 69, 54, 49, 50, 69, 52, 51, 54, 70, 54, 68};

    private static final byte[] DEFAULT_SECURET2 = { 53, 65, 54, 56, 54, 54, 55, 55, 55, 48, 55, 52, 52, 48, 52, 51, 54, 67, 54, 53, 54, 49, 55, 50, 52, 70, 54, 54, 52, 51, 54, 56, 54, 57, 54, 69, 54, 49, 50, 69, 52, 51, 54, 70, 54, 68 };

    private static final String secret = "6EEB45668DBF4D26A933EA20716D55AD";

    public static void main(String[] args) {
        System.out.println(new String(DEFAULT_SECURET1, Charsets.UTF_8));

        String encrypt1 = AESUtil.encrypt(secret, DEFAULT_SECURET1);
        String content = AESUtil.decrypt(encrypt1, DEFAULT_SECURET1);

        String content2 = AESUtil.decrypt(encrypt1, DEFAULT_SECURET2);

        System.out.println(encrypt1 + content + content2);

    }
}
